from imports import gameboard
import curses
import sys

def main():
    stdscr = curses.initscr()
    curses.noecho()
    curses.cbreak()
    #stdscr.keypad(True)

    stdscr.addstr("Hello world!!!")
    stdscr.refresh()
    stdscr.getch()

    margin_x = 20
    margin_y = 7
    win = curses.newwin(curses.LINES-margin_y, curses.COLS-margin_x, margin_y, margin_x)
    win.addstr('LOLLLL')
    win.refresh()

    while True:
        if stdscr.getch() in (-1,27,ord('q')):
            curses.nocbreak()
            curses.echo()
            curses.endwin()
            sys.exit(0)

if __name__ == '__main__':
    main()
    a = gameboard.GameBoard(9,9)

